package file;

import java.io.File;
import java.util.Scanner;

public class Test03 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入目录名");
        String in = scan.next();
        File dar = new File("./"+in);
        if (dar.exists()){
            System.out.println("目录已经存在");
        }else{
            dar.mkdirs();
            System.out.println("目录创建成功");
        }
    }
}
